use axum::{Error, Json, response::IntoResponse};
use axum_sqlite::Database;
use chrono::{Local, TimeZone};
use redis::Client;
use reqwest::StatusCode;
use serde::{Deserialize, Serialize, de::DeserializeOwned};
use serde_json::{json, Value};


use crate::{config::{HCaptchaConfig, SessionConfig}, error::AppError};

pub struct AppState {
    db: Database
}

#[derive(Debug)]
pub struct Admin {
    pub id: i32,
    pub username: String,
    pub password: String,
    pub is_sys: bool,
    pub is_del: bool,
}
 